package com.hys.enums;

/**
 * 审核状态
 */
public enum EnterTypeEnum {
    MIDDLE_OR_SMALL("1", "中小微"),
    SMALL("2", "中小微"),
    BIG("3", "大型");

    private final String code;
    private final String description;

    EnterTypeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    public static String getDescriptionByCode(String code) {
        for (EnterTypeEnum enumValue : EnterTypeEnum.values()) {
            if (enumValue.getCode().equals(code)) {
                return enumValue.getDescription();
            }
        }
        return null;
    }
}
